﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="helpproject.xsl" ?>
<topic template="Default" lasteditedby="Geert" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="helpproject.xsd">
  <title translate="true">EventHandlerExtensions Members</title>
  <meta name="import-hash" value="12161208" />
  <meta name="import-timestamp" value="2012-11-27T20:57:25.543Z" />
  <body>
    <header>
      <para><text styleclass="runningheadertext" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#8c8c8c; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">.NET Framework Class Library</text></para>
      <para><text styleclass="nsrtitle" style="font-family:Arial; font-size:14pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">EventHandlerExtensions Members</text></para>
    </header>
    <para styleclass="heading" style="text-align:left; text-indent:0px; margin-top:18px; margin-right:0px; margin-bottom:0px; margin-left:15px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="heading" style="font-family:Verdana; font-size:8pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Methods</text></para>
    <para styleclass="members" style="text-align:left; text-indent:0px; margin-top:5px; margin-right:0px; margin-bottom:5px; margin-left:31px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><table rowcount="7" colcount="3" style="width:99%; cell-padding:2px; cell-spacing:2px; page-break-inside:auto; border-width:0px; border-spacing:2px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#efeff7;">
          <para><text styleclass="iconcolumn" style="font-family:Verdana; font-size:8pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">&#32;</text></para>
        </td>
        <td style="width:150px; background-color:#efeff7;">
          <para><text styleclass="namecolumn" style="font-family:Verdana; font-size:8pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Name</text></para>
        </td>
        <td style="background-color:#efeff7;">
          <para><text styleclass="descriptioncolumn" style="font-family:Verdana; font-size:8pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Description</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#f7f7ff;">
          <para><image src="pubmethod.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Public method</title></image><image src="static.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Static member</title></image></para>
        </td>
        <td style="width:150px; background-color:#f7f7ff;">
          <para><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_2_d9e68a28" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">SafeInvoke(EventHandler, Object)</link></para>
        </td>
        <td style="background-color:#f7f7ff;">
          <para styleclass="summary" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Invokes the specified </text><text styleclass="parameter" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:italic; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">handler</text><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true"> in a thread-safe manner with </text><link displaytype="text" defaultstyle="true" type="weblink" href="http://msdn2.microsoft.com/en-us/library/0bh6st3a" target="_blank" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">Empty</link><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true"> as parameter for the event args. Where normally one has to write the following code:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;var handler = MyEvent;</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;if (handler != null)</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;{</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;handler(this, EventArgs.Empty);</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;}</text></para>
              </td>
            </tr>
          </table></para>
          <para styleclass="Normal" style="margin-bottom:0px; line-height:1.0; tabstops:none;"><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">One can now write:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;MyEvent.SafeInvoke(this);</text></para>
              </td>
            </tr>
          </table></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#f7f7ff;">
          <para><image src="pubmethod.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Public method</title></image><image src="static.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Static member</title></image></para>
        </td>
        <td style="width:150px; background-color:#f7f7ff;">
          <para><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_2_b5576a2a" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">SafeInvoke(EventHandler</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_2_b5576a2a" styleclass="nu" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">(</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_2_b5576a2a" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">EventArgs</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_2_b5576a2a" styleclass="nu" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">)</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_2_b5576a2a" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">, Object)</link></para>
        </td>
        <td style="background-color:#f7f7ff;">
          <para styleclass="summary" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Invokes the specified </text><text styleclass="parameter" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:italic; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">handler</text><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true"> in a thread-safe manner with </text><link displaytype="text" defaultstyle="true" type="weblink" href="http://msdn2.microsoft.com/en-us/library/0bh6st3a" target="_blank" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">Empty</link><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true"> as parameter for the event args. Where normally one has to write the following code:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;var handler = MyEvent;</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;if (handler != null)</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;{</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;handler(this, EventArgs.Empty);</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;}</text></para>
              </td>
            </tr>
          </table></para>
          <para styleclass="Normal" style="margin-bottom:0px; line-height:1.0; tabstops:none;"><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">One can now write:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;MyEvent.SafeInvoke(this);</text></para>
              </td>
            </tr>
          </table></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#f7f7ff;">
          <para><image src="pubmethod.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Public method</title></image><image src="static.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Static member</title></image></para>
        </td>
        <td style="width:150px; background-color:#f7f7ff;">
          <para><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_3_768f857c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">SafeInvoke(NotifyCollectionChangedEventHandler, Object, NotifyCollectionChangedEventArgs)</link></para>
        </td>
        <td style="background-color:#f7f7ff;">
          <para styleclass="summary" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Invokes the specified </text><text styleclass="parameter" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:italic; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">handler</text><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true"> in a thread-safe manner. Where normally one has to write the following code:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;var handler = CollectionChanged;</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;if (handler != null)</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;{</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;handler(this, e, new NotifyCollectionChangedEventArgs(...));</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;}</text></para>
              </td>
            </tr>
          </table></para>
          <para styleclass="Normal" style="margin-bottom:0px; line-height:1.0; tabstops:none;"><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">One can now write:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;CollectionChanged.SafeInvoke(this, e, new NotifyCollectionChangedEventArgs(...));</text></para>
              </td>
            </tr>
          </table></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#f7f7ff;">
          <para><image src="pubmethod.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Public method</title></image><image src="static.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Static member</title></image></para>
        </td>
        <td style="width:150px; background-color:#f7f7ff;">
          <para><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_3_26cd50dc" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">SafeInvoke(PropertyChangedEventHandler, Object, PropertyChangedEventArgs)</link></para>
        </td>
        <td style="background-color:#f7f7ff;">
          <para styleclass="summary" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Invokes the specified </text><text styleclass="parameter" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:italic; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">handler</text><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true"> in a thread-safe manner. Where normally one has to write the following code:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;var handler = PropertyChanged;</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;if (handler != null)</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;{</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;handler(this, e, new PropertyChangedEventArgs(&quot;propertyName&quot;));</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;}</text></para>
              </td>
            </tr>
          </table></para>
          <para styleclass="Normal" style="margin-bottom:0px; line-height:1.0; tabstops:none;"><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">One can now write:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;PropertyChanged.SafeInvoke(this, e, new PropertyChangedEventArgs(&quot;propertyName&quot;));</text></para>
              </td>
            </tr>
          </table></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#f7f7ff;">
          <para><image src="pubmethod.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Public method</title></image><image src="static.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Static member</title></image></para>
        </td>
        <td style="width:150px; background-color:#f7f7ff;">
          <para><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke_3_52eff53c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">SafeInvoke(EventHandler, Object, EventArgs)</link></para>
        </td>
        <td style="background-color:#f7f7ff;">
          <para styleclass="summary" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Invokes the specified </text><text styleclass="parameter" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:italic; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">handler</text><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true"> in a thread-safe manner with </text><link displaytype="text" defaultstyle="true" type="weblink" href="http://msdn2.microsoft.com/en-us/library/0bh6st3a" target="_blank" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">Empty</link><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true"> as parameter for the event args. Where normally one has to write the following code:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;var handler = MyEvent;</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;if (handler != null)</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;{</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;handler(this, EventArgs.Empty);</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;}</text></para>
              </td>
            </tr>
          </table></para>
          <para styleclass="Normal" style="margin-bottom:0px; line-height:1.0; tabstops:none;"><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">One can now write:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;MyEvent.SafeInvoke(this);</text></para>
              </td>
            </tr>
          </table></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:24px; background-color:#f7f7ff;">
          <para><image src="pubmethod.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Public method</title></image><image src="static.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Static member</title></image></para>
        </td>
        <td style="width:150px; background-color:#f7f7ff;">
          <para><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">SafeInvoke</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="nu" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">(</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">TEventArgs</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="nu" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">)</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">(EventHandler</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="nu" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">(</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">TEventArgs</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="nu" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000066; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">)</link><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_EventHandlerExtensions_SafeInvoke``1_3_2a8cb90c" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">, Object, TEventArgs)</link></para>
        </td>
        <td style="background-color:#f7f7ff;">
          <para styleclass="summary" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Invokes the specified </text><text styleclass="parameter" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:italic; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">handler</text><text styleclass="summary" style="font-family:Verdana; font-size:8pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true"> in a thread-safe manner. Where normally one has to write the following code:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;var handler = MyEvent;</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;if (handler != null)</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;{</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;handler(this, e);</text></para>
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;}</text></para>
              </td>
            </tr>
          </table></para>
          <para styleclass="Normal" style="margin-bottom:0px; line-height:1.0; tabstops:none;"><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">One can now write:</text></para>
          <para styleclass="Normal" style="margin-top:5px; margin-bottom:5px; line-height:1.0; tabstops:none;"><table rowcount="2" colcount="2" style="width:100%; cell-padding:0px; cell-spacing:0px; page-break-inside:auto; border-width:0px; border-spacing:0px; cell-border-width:1px; border-color:#a0a0a0; border-style:solid; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
            <tr style="vertical-align:top">
              <td style="background-color:#efeff7;">
                <para><text styleclass="Normal" style="font-family:Verdana; font-size:8pt; font-weight:bold; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true">&#32;</text></para>
              </td>
              <td style="background-color:#efeff7;">
                <para style="text-align:right;"><image src="copycode.gif" scale="100.00%" styleclass="Image Caption"><title translate="true">Copy image</title></image><text styleclass="copycode" style="font-family:Verdana; font-size:7pt; font-weight:normal; font-style:normal; text-decoration:underline; text-transform:none; vertical-align:baseline; color:#0000ff; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Copy Code</text></para>
              </td>
            </tr>
            <tr style="vertical-align:top">
              <td colspan="2" style="background-color:#f7f7ff;">
                <para styleclass="Normal" style="margin-top:0px; margin-bottom:0px; line-height:1.0; background-color:#f7f7ff; white-space:nowrap; tabstops:none;"><text styleclass="Normal" style="font-family:&apos;Courier New&apos;; font-size:8pt; text-decoration:none; vertical-align:baseline; color:#000066;" translate="true"> &#160; &#160; &#160; &#160; &#160; &#160;MyEvent.SafeInvoke(this, e);</text></para>
              </td>
            </tr>
          </table></para>
        </td>
      </tr>
    </table></para>
    <para styleclass="heading" style="text-align:left; text-indent:0px; margin-top:18px; margin-right:0px; margin-bottom:0px; margin-left:15px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><text styleclass="heading" style="font-family:Verdana; font-size:8pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">See Also</text></para>
    <para styleclass="seealsostyle" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:31px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_EventHandlerExtensions" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">EventHandlerExtensions Class</link></para>
    <para styleclass="seealsostyle" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:31px; line-height:1.0; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:none;"><link displaytype="text" defaultstyle="true" type="topiclink" href="N_Catel" styleclass="Normal" style="font-family:Verdana; font-size:8pt; text-decoration:none; vertical-align:baseline;" translate="true">Catel Namespace</link></para>
  </body>
</topic>
